package com.smartstate.dataManagement.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@TableName("user_role")
public class UserAndRole {

    /**
     * 主键ID
     */
    @TableId(type = IdType.INPUT)
    @TableField(value = "ID", fill = FieldFill.INSERT)
    private String id;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色名称")
    @TableField(value = "ROLE_ID", fill = FieldFill.INSERT)
    private String roleId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @TableField(value = "USER_ID", fill = FieldFill.INSERT)
    private String userId;

}
